package com.fc.advbox.dao;

import com.fc.advbox.entity.InvestorAcctEntity;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * InvestorAcctDao
 *
 * @author Gary.Jiang
 * @date 2018/6/26.16:34
 */
public interface InvestorAcctDao extends BaseDao<InvestorAcctEntity> {

    BigDecimal queryTotalProfit(Map<String, Object> params);

    InvestorAcctEntity queryByUserIdAndAcctId(Long userId, Long acctId);

    List<InvestorAcctEntity> queryByUserId(Long userId);

    List<InvestorAcctEntity> queryLimit(@Param(value="offset") Integer offset, @Param(value="num") Integer num);

    void changeAmt(@Param(value="userId") Long userId, @Param(value="amt") Double amt);
}
